local gameObject;
local transform;

HallPanel = {};
local this = HallPanel;

--激活面板--
function HallPanel.Awake(obj)
    gameObject = obj;
    transform = obj.transform;

    this.InitPanel();
    logWarn("Awake Lua --->>>" .. gameObject.name);
end

--初始化面板--
function HallPanel.InitPanel()
    logWarn("我是HallPanel,我被加载了");

    HallPanel.RankingButton = transform:Find("RankingButton").gameObject;
    HallPanel.ShopButton = transform:Find("ShopButton").gameObject;
    HallPanel.RankingPanel = transform.parent:Find("RankingPanel").gameObject;

    HallCtrl.OnCreate(gameObject);
end

function HallPanel.OnDestroy()
    logWarn("OnDestroy --->>>");
end